// interface 定义数组类型
interface INumberArray {
  [index: number]: number; // 表示索引的类型是number，值类型也要是number
}

const num: INumberArray = [1, 3];
const num1: number[] = [];

function sum(n1: number[], n2: string) {
  // let arg: IArguments = arguments;
  const num1 = arguments[1];
}
// sum();

interface IEmits {
  // sum: () => void;
  (event: "change", value: string): number;
}

// const test: IEmits = {
//   sum: () => {},
// };
const test2: IEmits = (name: string, value: string) => 1;

export {};
